package com.huaqing.manage.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.huaqing.common.annotation.Excel;
import com.huaqing.common.core.domain.BaseEntity;

/**
 * 仓库管理对象 material_record
 * 
 * @author cdutTang
 * @date 2025-02-28
 */
public class MaterialRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 记录ID */
    private Long recordId;

    /** 材料ID */
    private Long materialId;

    /** 记录类型（1入库 2出库 3退货） */
    @Excel(name = "记录类型", readConverterExp = "1=入库,2=出库,3=退货")
    private String recordType;

    /** 数量 */
    @Excel(name = "数量")
    private BigDecimal quantity;

    /** 单价 */
    @Excel(name = "单价")
    private BigDecimal price;

    /** 供应商 */
    @Excel(name = "供应商")
    private Long supplierId;

    /** 领料部门 */
    @Excel(name = "领料部门")
    private Long departmentId;

    /** 操作人 */
    @Excel(name = "操作人")
    private String operator;

    public void setRecordId(Long recordId) 
    {
        this.recordId = recordId;
    }

    public Long getRecordId() 
    {
        return recordId;
    }
    public void setMaterialId(Long materialId) 
    {
        this.materialId = materialId;
    }

    public Long getMaterialId() 
    {
        return materialId;
    }
    public void setRecordType(String recordType) 
    {
        this.recordType = recordType;
    }

    public String getRecordType() 
    {
        return recordType;
    }
    public void setQuantity(BigDecimal quantity) 
    {
        this.quantity = quantity;
    }

    public BigDecimal getQuantity() 
    {
        return quantity;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setSupplierId(Long supplierId) 
    {
        this.supplierId = supplierId;
    }

    public Long getSupplierId() 
    {
        return supplierId;
    }
    public void setDepartmentId(Long departmentId) 
    {
        this.departmentId = departmentId;
    }

    public Long getDepartmentId() 
    {
        return departmentId;
    }
    public void setOperator(String operator) 
    {
        this.operator = operator;
    }

    public String getOperator() 
    {
        return operator;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("recordId", getRecordId())
            .append("materialId", getMaterialId())
            .append("recordType", getRecordType())
            .append("quantity", getQuantity())
            .append("price", getPrice())
            .append("supplierId", getSupplierId())
            .append("departmentId", getDepartmentId())
            .append("createTime", getCreateTime())
            .append("operator", getOperator())
            .toString();
    }
}
